package com.dcloud.streamweb.sysconfig.service;

import com.dcloud.streamweb.enums.DeployModeEnum;
import com.dcloud.streamweb.enums.SysConfigEnumType;
import com.dcloud.streamweb.sysconfig.entity.SystemConfig;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dcloud.streamweb.sysconfig.entity.dto.SystemConfigDTO;

import java.util.List;

/**
 * @Description: system_config
 * @Author: jeecg-boot
 * @Date:   2024-07-11
 * @Version: V1.0
 */
public interface ISystemConfigService extends IService<SystemConfig> {

    List<SystemConfigDTO> getSystemConfig(SysConfigEnumType sysConfigEnumType);

    void addOrUpdateConfigByKey(String key, String trim);

    void deleteConfigByKey(String key);

    String getSystemConfigByKey(String key);

    String getFlinkHttpAddress(DeployModeEnum deployModeEnum);

    String getUploadJarsPath();

    String getFlinkAddress(DeployModeEnum deployModeEnum);

    String getYarnRmHttpAddress();

}
